import java.io.BufferedOutputStream;
import java.util.ArrayList;

public class DepositManager implements IBTMSetting {
	private ArrayList<Deposit> biomeDeposits;

	public void process(int x, int z) {
		for (Deposit d : biomeDeposits) {
			d.process(x, z);
			d.defaultProcess(x, z);
		}
	}

	void addDeposit(Deposit d) {
		biomeDeposits.add(d);

	}

	@Override
	public void fetchSettings(AltLoader al) {
		for (Deposit d : biomeDeposits) {
			d.fetchSettings(al);

		}

	}

	@Override
	public void writeSettings(BufferedOutputStream bof) {
		for (Deposit d : biomeDeposits) {
			d.writeSettings(bof);
		}

	}

}
